#ifndef _OPEN_TEST_H
#define _OPEN_TEST_H

#include "stm32f4xx_hal.h"
#include "test_seq.h"
#include "display.h"

/*------------------- Short Test---------------*/
#define ExtAdcCh1Sel(ch) (UserExtPort.ExtAdc1(ch))
#define ExtAdcCh2Sel(ch) (UserExtPort.ExtAdc2(ch))

void OpenInit(void);
unsigned char OpenForceSet(unsigned char ch1, unsigned char ch2, unsigned char port);
unsigned char OpenSenseSet(unsigned char ch1, unsigned char ch2, unsigned char port);
unsigned char OpenEnableSet(uint8_t IsEn);

extern TestCycle Open_TestCycle;
// Test only
void OpenTestFunc(void);

unsigned char OpenTest(DisplayData* pDispdataL,DisplayData* pDispdataR);

extern unsigned long OpenResTable[24];


#endif	/* _OPEN_TEST_H */

